<?php
        $con = mysql_connect ("localhost:3306", "root", "fli2411");
        if (!$con) {
                die('Could not connect: ' . mysql_error());
        }
        mysql_select_db("brain_browser", $con);
	if (isset($_GET['user']) && isset($_GET['link']) ) {
        	mysql_query("INSERT INTO user_link (user, link) VALUES ('$_GET[user]', '$_GET[link]')", $con);
		echo "Inserted to database!";
	}

	else {
		echo "link and user not found!";
	}
?>
